package 曾世昌12_2;

public class dog {
    String name;
    int age;
    int weigth;

    @Override
    public String toString() {
        return "dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", weigth=" + weigth +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getWeigth() {
        return weigth;
    }

    public void setWeigth(int weigth) {
        this.weigth = weigth;
    }

    public dog() {
    }

    public dog(String name, int age, int weigth) {
        this.name = name;
        this.age = age;
        this.weigth = weigth;
    }
}
